package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Description:
 * Author Xu Chen xu
 * Create 2024/4/24 - 下午2:58
 * version v1.0
 */
public interface PermissionService extends IService<Permission> {
    //获取所有菜单列表
    List<Permission> consultAllMenus();
    //递归删除
    boolean removeChildById(Long id);

    void saveUserRoleRelationShip(Long roleId, Long[] permissionId);

    List<Permission> findPermissionById(Long roleId);
}
